﻿// <copyright file="AnalyticsEvents.cs" company="Microsoft Corporation">
// Copyright (c) 2009 Microsoft Corporation All Rights Reserved
// </copyright>
// <author>Michael S. Scherotter</author>
// <email>mischero@microsoft.com</email>
// <date>2009-11-27</date>
// <summary>AnalyticsEvents class definition</summary>

namespace Microsoft.WebAnalytics
{
    using System.Collections.ObjectModel;
    using System.Runtime.Serialization;

    /// <summary>
    /// Serializable analytics event collection
    /// </summary>
    [DataContract(Name = "AES", Namespace = "http://schemas.microsoft.com/webanalytics/2010")]
    public class AnalyticsEvents
    {
        /// <summary>
        /// Initializes a new instance of the AnalyticsEvents class.
        /// </summary>
        public AnalyticsEvents()
        {
            this.Events = new Collection<AnalyticsEvent>();
        }

        /// <summary>
        /// Gets or sets a collection of AnalyticsEvent objects
        /// </summary>
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly", Justification = "Necessary for XAML serialization."), DataMember(Name = "E")]
        public Collection<AnalyticsEvent> Events { get; set; }
    }
}
